﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Web;
using System.Text;

namespace BlueLotus7.Web
{
    public class GridSource
    {
        private string key;
        private List<KeyValuePair<string, string>> items = new List<KeyValuePair<string, string>>();

        public string Key
        {
            get
            {
                return this.key;
            }
        }

        public List<KeyValuePair<string, string>> Items
        {
            get
            {
                return this.items;
            }
        }

        public GridSource(string key)
        {
            this.key = key;
        }

        //public string ToJavaScript()
        //{
        //    List<GridSource> sources = new List<GridSource>();
        //    sources.Add(this);
        //    return ("dataSource.tryInit(); dataSource.addSourceRange(" + System.Web.Helpers.Json.Encode(sources) + ");");
        //}
    }
}